package com.turing.post.capitalaccounts.util;

import java.io.Serializable;
import java.math.BigInteger;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 银行帐户信息
 * 
 * @author 李治
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "BANKACCOUNT")
public class BankAccount implements Serializable {
	/**
	 * 银行账户ID
	 */
	private BigInteger bankAccountId;
	/**
	 * 开户行名称
	 */
	private String bankName;
	/**
	 * 账户名称
	 */
	private String accountName;
	/**
	 * 账号
	 */
	private String accountNo;

	private String issueCompanyNo;

	private String branchNo;// 机构号

	/**
	 * 0 –发卡商
	 */
	public static final String BANKTYPE_ISSUECOMPANY = "0";
	/**
	 * 1 –机构
	 */
	public static final String BANKTYPE_BRANCH = "1";
	/**
	 * 2 -客户
	 */
	public static final String BANKTYPE_CUSTOM = "2";
	private String bankType;// 银行账户类型

	private String remark;// 备注

	public BankAccount() {
		super();
	}

	@Id
	@Column(name = "BANKACCOUNTID", nullable = false)
	public BigInteger getBankAccountId() {
		return bankAccountId;
	}

	public void setBankAccountId(BigInteger bankAccountId) {
		this.bankAccountId = bankAccountId;
	}

	@Column(name = "BANKNAME", nullable = false)
	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	@Column(name = "ACCOUNTNAME", nullable = false)
	public String getAccountName() {
		return accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	@Column(name = "ACCOUNTNO", nullable = false)
	public String getAccountNo() {
		return accountNo;
	}

	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo;
	}

	@Column(name = "ISSUECOMPANYNO", nullable = false)
	public String getIssueCompanyNo() {
		return issueCompanyNo;
	}

	public void setIssueCompanyNo(String issueCompanyNo) {
		this.issueCompanyNo = issueCompanyNo;
	}

	@Column(name = "BANKTYPE", nullable = false)
	public String getBankType() {
		return bankType;
	}

	public void setBankType(String bankType) {
		this.bankType = bankType;
	}

	@Column(name = "BRANCHNO")
	public String getBranchNo() {
		return branchNo;
	}

	public void setBranchNo(String branchNo) {
		this.branchNo = branchNo;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}